package com.egoo.multipartfilestarter.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author hujian
 * @Date 2022/7/30 16:04
 * @Version 0.1
 */

@Component
@EnableConfigurationProperties({MultipartConfigProperties.class})
@ConfigurationProperties(prefix = "com.multipartconfig")
public class MultipartConfigProperties {

    private Long setMaxFileSize;
    private Long setMaxRequestSize;

    public long getSetMaxFileSize() {
        return setMaxFileSize;
    }

    public void setSetMaxFileSize(long setMaxFileSize) {
        this.setMaxFileSize = setMaxFileSize;
    }

    public long getSetMaxRequestSize() {
        return setMaxRequestSize;
    }

    public void setSetMaxRequestSize(long setMaxRequestSize) {
        this.setMaxRequestSize = setMaxRequestSize;
    }
}
